package br.uff.javaavancado.contexto;

/**
 *
 * @author Heliokann
 */

import br.uff.javaavancado.dao.controle.JPAUtil;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class JPAStartupListener implements ServletContextListener {

    public void contextInitialized(ServletContextEvent arg0) {
        System.out.println(">>>>>>>>>>>>>>>>> Iniciando o JPA");
        JPAUtil.startUp();
        System.out.println(">>>>>>>>>>>>>>>>> JPA iniciando com sucesso!");
    }

    public void contextDestroyed(ServletContextEvent arg0) {
    }
}


